package com.mg.axechen.wanandroid;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.mg.axechen.wanandroid.databinding.ActivityTestBinding;
import com.mg.axechen.webview.BrowserActivity;

/**
 * @author AxeChen
 */
public class TestActivity extends AppCompatActivity {

    private ActivityTestBinding activityTestBinding;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initView();
    }

    private void initView(){
        activityTestBinding = ActivityTestBinding.inflate(getLayoutInflater());
        setContentView(activityTestBinding.getRoot());

        activityTestBinding.btnTestWebview.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                BrowserActivity.startActivity(TestActivity.this,"百度","https://www.baidu.com");

            }
        });
    }
}
